package com.article.mapper;

import com.article.entity.dto.ArticleTypeDao;
import com.article.entity.dto.SearchArticleTypeDao;
import com.article.entity.pojo.ArticleType;
import com.article.entity.vo.ArticleTypeVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArtcleTypeMapper extends BaseMapper<ArticleType> {
    List<ArticleType> getArticleType(int page, int size);

    int addArticleType(ArticleTypeDao articleTypeDao);

    int updateArticleTypeById(ArticleTypeDao articleTypeDao);

    List<ArticleTypeVo> searchArticleType(SearchArticleTypeDao searchArticleTypeDao);

    int selectArticleTypeNumber();

    ArticleType getArticle(String name, String type);
}
